﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="main.aspx.cs" Inherits="main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>书</title>
    <style type="text/css">
        .style1
        {
            color: #FF9933;
        }
        .style2
        {
            color: #c0c0c0;
            font-size:
        }
        
        .style3
        {
            height: 19px;
        }
        
        .style4
    {
        color: #C0C0C0;
    }
        
        .style5
        {
            height: 16px;
        }
        
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-left:254px;height:586px;width:916px;border:0.5px dashed #ff9933;border-bottom-width:0.5px;">
        <h4 style="margin-left:3px;margin-top:10px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">精品推荐</span><a style="margin-left:770px;font-size:12px;" 
                href="main2.aspx?id=2&&var=1" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:10px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">
                    <asp:DataList ID="dLRefine" runat="server" Width="780px"  RepeatColumns="4" 
                        onitemcommand="dLRefine_ItemCommand" >
                        <ItemTemplate>
                            <table style="height:62px;">
                                <tr>
                                    <td rowspan="5" style="width:29px;">
                                        <asp:Image ID="imageRefine" runat="server" 
                                            ImageUrl='<%# DataBinder.Eval(Container.DataItem,"BookUrl") %>' />
                                    </td>
                                    <td colspan="2" align="center">
                                        <asp:LinkButton ID="InkbtnRName" runat="server" CommandName="detailSee" 
                                            Font-Underline="False" 
                                            CommandArgument='<%# DataBinder.Eval(Container.DataItem,"BookID") %>'>
                                        <%#DataBinder.Eval(Container.DataItem,"BookID") %>
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：
                                    </td>
                                    <td class="style3">
                                        <%#DataBinder.Eval(Container.DataItem,"BookName") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：
                                    </td>
                                    <td class="style3">
                                        <%#GetVarHot(DataBinder.Eval(Container.DataItem, "HotPrice").ToString())%>￥
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:ImageButton ID="ImageButton1" runat="server"  ImageUrl="~/images/购买.jpg" />
                                        <asp:ImageButton ID="ImagebtnRefine" runat="server" CommandName="buy" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>' ImageUrl="~/images/购买.jpg" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
        </table>
        <h4 style="margin-left:3px;margin-top:45px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">特价商品</span><a style="margin-left:770px;font-size:12px;" 
                href="main2.aspx?id=3&&var=1" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:10px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">
                    <asp:DataList ID="dlDiscount" runat="server" Width="745px" RepeatColumns="4" 
                        onselectedindexchanged="dlDiscount_SelectedIndexChanged" 
                        onitemcommand="dlDiscount_ItemCommand"  >
                        <ItemTemplate>
                            <table style="height:62px;">
                                <tr>
                                    <td rowspan="5" style="width:29px;">
                                        <asp:Image ID="imageRefine" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"BookUrl")%>' />
                                    </td>
                                    <td colspan="2" align="center">
                                        <asp:LinkButton ID="InkbtnRName" runat="server" CommandName="detailSee" Font-Underline="false" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>'>
                                        <%#DataBinder.Eval(Container.DataItem,"BookID") %>
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：
                                    </td>
                                    <td class="style3">
                                        <%#DataBinder.Eval(Container.DataItem,"BookName") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：
                                    </td>
                                    <td>
                                        <%#GetVarHot(DataBinder.Eval(Container.DataItem, "HotPrice").ToString()) %>￥
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:ImageButton ID="ImagebtnRefine" runat="server" CommandName="buy" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>' ImageUrl="~/images/购买.jpg" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
        </table>
        <h4 style="margin-left:3px;margin-top:45px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">热销商品</span><a style="margin-left:770px;font-size:12px;" 
                href="main2.aspx?id=4&&var=1" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:10px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">
                    <asp:DataList ID="dlHot" runat="server" Width="745px" RepeatColumns="4" 
                        onitemcommand="dlHot_ItemCommand" >
                        <ItemTemplate>
                            <table style="height:62px;">
                                <tr>
                                    <td rowspan="5" style="width:29px;">
                                        <asp:Image ID="imageRefine" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"BookUrl")%>' />
                                    </td>
                                    <td colspan="2" align="center">
                                        <asp:LinkButton ID="InkbtnRName" runat="server" CommandName="detailSee" Font-Underline="false" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>'>
                                        <%#DataBinder.Eval(Container.DataItem,"BookID") %>
                                        </asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：
                                    </td>
                                    <td class="style3">
                                        <%#DataBinder.Eval(Container.DataItem,"BookName") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：
                                    </td>
                                    <td>
                                        <%#GetVarHot(DataBinder.Eval(Container.DataItem, "HotPrice").ToString()) %>￥
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <asp:ImageButton ID="ImagebtnRefine" runat="server" CommandName="buy" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BookID") %>' ImageUrl="~/images/购买.jpg" />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

